package com.erplan.studentmgt.desktop.elements;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;

import com.erplan.studentmgt.desktop.StudentMgt;

public class AppClientArea {

	public static void init() {
		StudentMgt.clientArea = new Composite(StudentMgt.shell, SWT.NONE);
		GridData clientAreaLData = new GridData();
		clientAreaLData.grabExcessHorizontalSpace = true;
		clientAreaLData.grabExcessVerticalSpace = true;
		clientAreaLData.horizontalAlignment = GridData.FILL;
		clientAreaLData.verticalAlignment = GridData.FILL;
		StudentMgt.clientArea.setLayoutData(clientAreaLData);
		StudentMgt.clientArea.setLayout(null);
		//StudentMgt.clientArea.setBackground(StudentMgt.display.getSystemColor(SWT.COLOR_CYAN));
		StudentMgt.clientArea.setMenu(StudentMgt.popupMenu);
	}
}